#ifndef NETWORKCONTROL_H
#define NETWORKCONTROL_H

#include <QObject>
#include <coordinator.h>
#include <QTcpServer>
#include <QTcpSocket>
#include <QTimer>

class NetworkControl : public QObject
{
    Q_OBJECT
  Coordinator *coord;
  QTcpServer server;
  QTcpSocket* clientCtrl;
  QTimer netTimer;
  QDomDocument *doc;
public:
    explicit NetworkControl(Coordinator*, QObject *parent = 0);
    QDomDocument* fullDump();
    QDomDocument* updateDump();
    QDomElement dumpAllLinks();
    QDomElement dumpUpdatedLinks();
    QDomElement dumpAllProxy();
    QDomElement dumpUpdatedProxy();
signals:

public slots:
    void newConnection();
    void disconnected();
    void trigger();


};

#endif // NETWORKCONTROL_H
